package com.snail.readyvr.di.module;

import com.snail.readyvr.di.qualifier.AddVideo;
import com.snail.readyvr.di.qualifier.HistoryVideo;
import com.snail.readyvr.di.scope.FragmentScoped;
import com.snail.readyvr.mvp.contract.AddVideoActivityContract;

import dagger.Module;
import dagger.Provides;

/**
 * Created by MRKING on 2016/10/11.
 */


@Module
public class AddVideoActivityPresenterModule {
    private AddVideoActivityContract.View mAddVideoView;
    private AddVideoActivityContract.View mHistoryVideoView;

    public AddVideoActivityPresenterModule(AddVideoActivityContract.View addVideoView, AddVideoActivityContract.View historyVideoView) {
        mAddVideoView = addVideoView;
        mHistoryVideoView = historyVideoView;
    }

    @FragmentScoped
    @Provides
    @AddVideo
    public AddVideoActivityContract.View provideAddVideoView(){
        return mAddVideoView;
    }

    @FragmentScoped
    @Provides
    @HistoryVideo
    public AddVideoActivityContract.View provideHistoryVideoView(){
        return mHistoryVideoView;
    }
}
